<ion-card>
    <img #img [src]="source" (dragover)="allowDrag($event)" (click)="onImageClicked($event)"/>
    <div class="spotContainer"
         [style.left]="spot.x*unit+'px'"
         [style.top]="spot.y*unit+'px'"
         *ngFor="let spot of spots">
        <ion-icon #icon name="radio-button-on" color="primary"
                  [style.left]="-icon.clientWidth/2+'px'"
                  [style.top]="-icon.clientHeight/2+'px'"
        >
        </ion-icon>
    </div>
    <ion-item text-center>
        <button ion-button large [disabled]="thumbsUp" (click)="onThumbsUpClicked()">
            <ion-icon name="thumbs-up"></ion-icon>
            赞
        </button>
    </ion-item>
    <input type="file" style="display: none"/>
</ion-card>
